//
//  ViewController.swift
//  1.1Adding Blur Effects to Your Views
//
//  Created by joker on 15/7/20.
//  Copyright © 2015年 joker. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
        
        let blurEffect = UIBlurEffect(style: .Light)
        let blurView = UIVisualEffectView(effect: blurEffect)
        
        blurView.frame.size = CGSize(width: 200, height: 200)
        blurView.center = view.center
        
        view.addSubview(blurView)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

